import type { ExtractProps } from '@/utils/type'
import { useNamespace } from '@/utils'

export namespace variables {
  export const ns = useNamespace('TabItem')
}
export namespace TabItemNS {
  export const name = variables.ns.name
  export const props = {
    value: {
      type: [String, Number, Object, Boolean],
      required: true as const
    },
    disabled: Boolean,
    label: [String, Number]
  }
  export type Props = ExtractProps.Types<typeof props>
  export const Component = <{
    new(): {
      $props: Props
    }
  }>{}
}